<template>
  <div>
    <img v-if="$store.state.isMobile" style="width:100%;" src="../assets1/er/h5/hyxz.jpg" />

    <div v-else class="bg">
      <img style="width:100%;" src="../assets1/er/pc/hyxz.jpg" />
    </div>
    <returnIndex :isPhone="$store.state.isMobile"></returnIndex>
  </div>
</template>
<script>
import returnIndex from "@/components/return.vue";
export default {
  components: {
    returnIndex,//返回首页
  },
  data() {
    return {
    }
  },
  computed: {//计算属性

  },
  beforeCreate() {//beforeCreate创建前状态

  },
  created() {//created创建完毕状态

  },
  beforeMount() {//beforeMount挂载前状态   DOM 元素然后塞入页面的过程

  },
  mounted() {//mounted 挂载结束状态

  },
  methods: {//执行的方法

  },
  watch: {//监听

  },
  props: {//接收来自父组件的数据

  },
  beforeUpdate() {//beforeUpdate 更新前状态

  },
  updated() {//updated 更新完成状态

  },
  beforeDestroy() {//beforeDestroy 销毁前状态

  },
  destroyed() {//destroyed 销毁完成状态

  }
}
</script>

<style scoped lang="scss">
.bg {
  //background-image: url(../assets1/pc_know.jpg);
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  overflow: auto;
  //background-size: cover;
}
</style>
